package cn.itcast.order.service.impl;

import cn.itcast.order.mapper.OrderMapper;
import cn.itcast.order.pojo.Item;
import cn.itcast.order.service.OrderService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mokeiteam.basic.base.request.PageParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author danDong
 * @date 2025-01-03 23:03:44
 */
@Service
public class OrderServiceImpl implements OrderService {

    /*private final OrderMapper orderMapper;

    public OrderServiceImpl(OrderMapper orderMapper) {
        this.orderMapper = orderMapper;
    }*/


    /*@Autowired
    private OrderMapper orderMapper;*/

    /*@Override
    public IPage<Item> selectALlData(PageParams<Item> params) {
        Page<Item> page = new Page<>(params.getCurrent(), params.getSize());
        return orderMapper.selectXinxPage(page, params.getModel());
    }*/

    @Override
    public void sayHello() {
        System.out.println("hahhahahhahah");
    }

    /*public Item selectById(String id) {
        Item item = orderMapper.selectById(id);
        return item;
    }*/
}
